#ifndef MYCOIN_H
#define MYCOIN_H
#include<QTimer>
#include <QPushButton>
#include<qevent.h>

class MyCoin : public QPushButton
{
    Q_OBJECT
public:
    //explicit MyCoin(QWidget *parent = nullptr);
    MyCoin(QString butImg);

    int posX;
    int posY;
    bool flag;

    void changerFlag();
    QTimer *timer1;//正翻反
    QTimer *timer2;//反翻正
    int min=1;
    int max=8;
    bool isAnimation=false;
    void mousePressEvent(QMouseEvent *e);
    bool isWin=false;
signals:
};

#endif // MYCOIN_H
